package com.hmy.finance.dal.po.json;

import lombok.Data;

import java.math.BigDecimal;

/**
 * @author songkf
 */
@Data
public class FeeDetailJson implements java.io.Serializable {
    private static final long serialVersionUID = -7778904767842867248L;

    /**
     * 合计(租金+损益费用)
     */
    private BigDecimal totalFee = BigDecimal.ZERO;

    /**
     * 租金
     */
    private BigDecimal rentalFee = BigDecimal.ZERO;

    /**
     * 损益小计
     */
    private BigDecimal adjustTotal = BigDecimal.ZERO;

    /**
     * 进场运费
     */
    private BigDecimal entryShippingFee = BigDecimal.ZERO;

    /**
     * excel里展示的进场运费
     */
    private BigDecimal displayEntryShippingFee = BigDecimal.ZERO;

    /**
     * 退场运费
     */
    private BigDecimal exitShippingFee = BigDecimal.ZERO;
    /**
     * 改装费
     */
    private BigDecimal modificationFee = BigDecimal.ZERO;

    /**
     * excel里展示的改装运费
     */
    private BigDecimal displayModificationFee = BigDecimal.ZERO;

    /**
     * 索赔费
     */
    private BigDecimal claimFee = BigDecimal.ZERO;

    /**
     * 补录报停费用
     */
    private BigDecimal pauseFee = BigDecimal.ZERO;

    public BigDecimal getAdjustTotal() {
        return entryShippingFee.add(exitShippingFee).add(modificationFee).add(claimFee).add(pauseFee);
    }

    public BigDecimal getDisplayAdjustTotal() {
        return displayEntryShippingFee.add(exitShippingFee).add(displayModificationFee).add(claimFee).add(pauseFee);
    }

    public BigDecimal getTotalFee() {
        return rentalFee.add(entryShippingFee.add(exitShippingFee).add(modificationFee).add(claimFee).add(pauseFee));
    }

}
